package javase0825.run;

public class PrimeThread extends Thread {
    private long minPrime;
    private String mes;
    public PrimeThread(long minPrime,String mes) {
        this.minPrime = minPrime;
        this.mes = mes;
    }

    public void run() {
        for (int i = 0; i < 10; i++) {
            System.out.println(this.getName() + this.mes + ":" + (i + 1));
            Thread.yield();
            /*try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }*/
        }

    }
}